package com.medusa.aps.business.modules.modeling.model.output;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.util.List;

/**
 * BOM层级视图
 *
 * @author miskw
 * @date 2023/9/8
 */
@Data
@Accessors(chain = true)
public class BomTranslateViewVO {
    @Schema(description = "Id")
    private Long id;
    @Schema(description = "层级")
    private Integer level;
    @Schema(description = "物料编码")
    private String materialCode;
    @Schema(description = "物料名称")
    private String materialName;
    @Schema(description = "物料规格")
    private String materialSpecification;
    @Schema(description = "上层子项id")
    private Long parentId;
    @Schema(description = "下层数量")
    private Integer num = 0;
    @Schema(description = "单件用量")
    private BigDecimal unitUsage;
    @Schema(description = "子项")
    private List<BomTranslateViewVO> children;
}
